//弹窗
@mixin ivu-modal-content{
  .ivu-modal-content{
    background: rgba(230, 234, 240, 1);
    background: #E6EAF0;
    box-shadow: 0px 4px 8px 0px rgba(0,20,45,0.04);
    border-radius: 8px;
  }
}
@mixin ivu-modal-body{
  .ivu-modal-body {
    margin: 16px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0px 4px 8px 0px rgba(0,20,45,0.04);
    border-radius: 8px;
  }
}
@mixin ivu-modal-close{
  .ivu-modal-close{
    right: 16px;
    top: 10px;
    .ivu-icon-ios-close{
      font-size: 24px;
      background: rgba(0,20,45,0.5);
      border-radius: 12px;
      color: $white;
      vertical-align: unset;
    }
  }
}
@mixin ivu-modal-header{
  .ivu-modal-header{
    background: $white;
    padding: 13px 16px;
    border-radius: 8px 8px 0px 0px;
    .ivu-modal-header-inner{
      font-size: 16px;
      font-weight: bold;
      color: $font-black-color;
    }
  }
}
@mixin ivu-modal-footer{
  .ivu-modal-footer{
    background: $white;
    padding: 8px 16px 8px 16px;
    border-radius: 0px 0px 8px 8px;
    .ivu-btn{
      min-width: 112px;
      height: 40px;
      border-radius: 4px;
      line-height: 40px;
      padding-bottom: 0;
      padding-top: 0;
      //&:hover{
      //  border-color: $primary-color;
      //}
      span{
        vertical-align: top;
      }
    }
    .ivu-btn-primary{
      //border-color: $primary-color;
    }
  }
}
@mixin ivu-form-label-top{
  .ivu-form-label-top {
    .ivu-form-item-label{
      padding-bottom: 0;
      font-size: 14px;
      font-weight: 400;
      color:$font-black-color;
      display: block;
      text-align: left;
    }
  }
  .ivu-form-item{
   //margin-bottom: 24px;
    &:last-child{
      //margin-bottom: 0;
    }
  }
}
@mixin title-icon($c1,$c2){
  width: 64px;
  height: 64px;
  border: #{$c1} 12px solid;
  border-radius: 50%;
  margin: 23px auto 16px;
  text-align: center;
  padding: 0;
  i{
    color: $white;
    font-size: 20px !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    background: #{$c2};
    display: inline-block;
  }
}

.modal-content-layout {
  @include ivu-modal-content;
  @include ivu-modal-body;
  @include ivu-modal-close;
  @include ivu-modal-header;
  @include ivu-modal-footer;
  @include ivu-form-label-top;
}
.modal-wrap-layout{
  @include ivu-modal-close;
  @include ivu-modal-header;
  @include ivu-modal-footer;
}

.modal-title-layout{
  @include ivu-modal-header;
  .ivu-modal-header{
    .ivu-modal-header-inner{
      font-size: 20px;
    }
  }
  @include ivu-modal-close;
  .ivu-modal-close{
    .ivu-icon-ios-close{
      background: transparent;
      color: $font-black-color;
      font-weight: bold;
      font-size: 25px;
    }
  }
  @include ivu-modal-footer;
  .ivu-modal-footer{
    border: none;
    padding: 8px 16px 24px 16px;
    .ivu-btn{
      min-width: 80px;
      height: 32px;
      line-height: 32px;
      padding-bottom: 0;
      padding-top: 0;
      span{
        line-height: 32px;
      }
    }
  }
  .icon{
    &.red{
      @include title-icon(rgba(211,34,34,0.1),#E03E55)
    }
    &.blue{
      @include title-icon(rgba(3,91,235,0.1),#035BEB)
    }
  }
  .title{
    text-align: center;
    padding-bottom: 24px;
    span{
      display: block;
      &:nth-child(1){
        font-size: 16px;
        font-weight: bold;
        color: #00142D;
        line-height: 24px;
      }
      &:nth-child(2){
        font-weight: 400;
        color: rgba(0,20,45,0.5);
      }
    }
  }
}
.modal-content-item-layout{
  @include ivu-modal-content;
  @include ivu-modal-body;
  @include ivu-modal-close;
  @include ivu-modal-header;
  @include ivu-modal-footer;
  @include ivu-form-label-top;
  .ivu-modal-body {
    padding: 0;
    background: transparent;
  }
  .content-item{
    padding: 0 !important;
    background: #ffffff;
    box-shadow: 0px 4px 8px 0px rgba(0,20,45,0.04);
    border-radius: 8px;
    margin-bottom: 16px;
    //overflow: hidden;
    &:last-child{
      margin-bottom: 0;
    }
    .content-item-title{
      height: 32px;
      background: rgba(131,150,181,0.05);
      border-radius: 8px 8px 0px 0px;
      line-height: 32px;
      padding: 0 16px;
      font-size: 14px;
      font-weight: bold;
      color: #00142D;
      display: block;
      width: 100%;
    }
  }
}

.drawer-header{
  .ivu-drawer-header{
    background: $white;
    padding: 13px 16px;
    border-radius: 8px 8px 0px 0px;
    .ivu-drawer-header-inner{
      font-size: 16px;
      font-weight: bold;
      color: $font-black-color;
    }
  }
  .ivu-drawer-close{
    right: 16px;
    top: 10px;
    .ivu-icon-ios-close{
      font-size: 24px;
      background: rgba(0,20,45,0.5);
      border-radius: 12px;
      color: $white;
      vertical-align: unset;
    }
  }
}
